package com.proj.entity;

// Generated 2015-1-27 20:09:00 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ActivitySign generated by hbm2java
 */
@Entity
@Table(name = "activity_sign", catalog = "webhr")
public class ActivitySign implements java.io.Serializable {

	private Long id;
	private String activityId;
	private String userId;
	private Date createTime;

	public ActivitySign() {
	}

	public ActivitySign(String activityId, String userId) {
		this.activityId = activityId;
		this.userId = userId;
	}

	public ActivitySign(String activityId, String userId, Date createTime) {
		this.activityId = activityId;
		this.userId = userId;
		this.createTime = createTime;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name="activity_id", nullable = false, length = 45)
	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	@Column(name = "user_id", nullable = false, length = 45)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
